<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>4-19作业</title>
  <style>
    th{
      border:  #afc8e7 1px solid;
    }
    td{
      border: #afc8e7 1px solid;
      text-align: center;
    }
    thead{
      color: #000;
      background-color: #f1b6d0;
    }
    tbody{
      color: #000;
      background-color: #f1b6d0;
    }

  </style>

  <script src="table.js"></script>

</head>
<body>
<table cellspacing="0" border="1" width="50%">
  <thead>
  <tr><th>编号</th><th>姓名</th><th>年龄</th><th>职位</th><th>工资</th></tr>
  </thead>
  <tbody id="tbody">
  <tr id="tr1" ><td>001</td><td>张三</td><td>21</td><td>经理</td><td>8000</td></tr>
  <tr><td>002</td><td>李四</td><td>21</td><td>员工</td><td>8000</td></tr>
  <tr><td>003</td><td>赵武</td><td>21</td><td>会计</td><td>8000</td></tr>
  <tr><td>004</td><td>刘柳</td><td>21</td><td>总经理</td><td>18000</td></tr>
  </tbody>
</table>
</body>
</html>
